<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="socnet.controller.*" %>
<%@ page import="socnet.model.*" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Calendar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="./login.css" rel="stylesheet" type="text/css" />


<body>

<div class="container">
  <div class="header">
  <a href="http://localhost:8040/NKA-soc-net/myPage.jsp"><img src="images/profile.jpg" alt="Insert Logo Here" align="left" name="insert_logo" width="100" height="100" id="Insert_logo2" style="background-color: #8090AB; " /></a>
  <img src="images/GEEK_small.jpg" alt="Insert Logo Here" name="insert_logo" width="100" align="right" height="100" id="Insert_logo" style="background-color: #8090AB; display:block; "/><!-- end .header --></div>
  <br />
  <form id="form1" name="form1" method="post" action="" >
    <input type="text" name="search" id="search" />
    <input type="submit" name="searchB" id="searchB" value="Search" />
  </form>
  <br />
  <br />
    
    
  <div id="menu">
		<ul>
			<li><a href="groups.jsp" class="link">Groups</a></li>
			<li><a href="messages.jsp" class="link">Messages</a></li>
			<li><a href="myContacts.jsp" class="link">Contacts</a></li>
            <li><a href="myPictures.jsp" class="link">Pictures</a></li>
		</ul>
  </div>
  <fieldset>
  <%
  String szoveg = "";
  String datum = "";
  if(request.getParameter("elkuld")!=null) {
	  if(request.getParameter("valasz")!=null || request.getParameter("valasz")!="") {
		  szoveg=request.getParameter("valasz");
		  datum = new SimpleDateFormat("yyyy.MM.dd HH:mm").format(Calendar.getInstance().getTime());
	 }
  }
	  
	  %>
  
  
<label> Bata András </label> <br />
 <label style="float:right"> 2012.04.20 10:09 </label> <br />
    <label style="border-width:1px; border-color:#3F6; border-style:double; width:'100%';"> Szia, az a kerdesem, hogy mikor lesz ZH?</label><br />
    <label style="float:right"> 2012.04.21 15:20 </label> <br />
    <label style="border-width:1px; border-color:#3F6; border-style:double; width:'100%';"> vagy, hogy tudsz-e valamit róla?</label><br />
<%	if(szoveg != "" || szoveg != null) {
		%>
		<label style="float:right"> <%=datum%> </label> <br />
		<label style="border-width:1px; border-color:#3F6; border-style:double; width:'100%';"> <%=szoveg %> </label><br /> 
<% } %>
	<br />
    <form method="post" action="PersonMessages.jsp">	
    	<textarea name="valasz" cols="50" rows="5">New message</textarea> <br />
    	<input name="elkuld" type="submit" value="Send" />
    </form>
    <br />
   <br />
  </fieldset>

  <!-- end .sidebar1 --></div>

<!-- end .container -->
</div>
</body>
</html>